package cn.com.dhc.danlu.activity.home.presenter;

import android.content.Context;
import android.support.annotation.Nullable;

import java.util.List;

import cn.com.dhc.danlu.widget.loadlayer.LayerEnum;
import cn.com.hd.mall.web.webservices.entity.response.common.GetBannerListResponse;
import cn.com.hd.mall.web.webservices.entity.response.common.GetTopicListResponse;
import cn.com.hd.mall.web.webservices.entity.response.merch.PromotionListResponse;
import cn.com.hd.mall.web.webservices.entity.response.merch.RecommendListResponse;

/**
 * @author wuhaiyang
 */
public class HomeContract {

    public enum MsgCountType {
        order, envelop, push_msg
    }

    public interface IHomeView {
        //        DanluTaskProxy getTaskProxy();

        Context getContext();

        void refreshBadgeCount(MsgCountType type, int count);

        void switchLayer(LayerEnum layerEnum, @Nullable String info);

        void refreshTopicList(GetTopicListResponse model);

        void refreshViewModule(List<GetBannerListResponse.BannerListModel> mTopBanners, boolean isBanner);

        void setPromotionList(PromotionListResponse model, int totalCount);

        void setRecommendList(RecommendListResponse model, int totalCount);

        void getMerchListError(boolean isPromotion, String info);

        void showRotateBar(boolean isPromotion);
    }
}